//
//  MyNavView.m
//  SkinerZTZ
//
//  Created by cts on 2018/1/11.
//  Copyright © 2018年 hhjiang. All rights reserved.
//

#import "MyNavView.h"
#import "Header.h"
@implementation MyNavView

-(instancetype)initWithFrame:(CGRect)frame Title:(NSString *)title
{
    if (self = [super initWithFrame:frame]) {
        self.topView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 20)];
        self.topView.backgroundColor = color(240, 240, 240);
        [self addSubview:self.topView];
        self.bgView = [[UIView alloc] initWithFrame:CGRectMake(0, 20, kScreenWidth, 44)];
        self.bgView.backgroundColor = [UIColor whiteColor];
        [self addSubview:self.bgView];
        
        self.titleL = [[UILabel alloc] initWithFrame:CGRectMake(kScreenWidth/2-60, 7, 120, 30)];
        self.titleL.textAlignment = NSTextAlignmentCenter;
        self.titleL.textColor = [UIColor blackColor];
        self.titleL.text = title;
        self.titleL.font = kFONT_HEITI_TC(17);
        self.titleL.font = [UIFont boldSystemFontOfSize:17];
        [_bgView addSubview:self.titleL];
        
        self.leftBtn = [[UIButton alloc] initWithFrame:CGRectMake(15, 12, 20, 20)];
        
        [_bgView addSubview:self.leftBtn];
        
        self.rightBtn = [[UIButton alloc] initWithFrame:CGRectMake(kScreenWidth - 70, 12, 60, 20)];
        self.rightBtn.titleLabel.font = kFONT_HEITI_TC(15);
        [self.rightBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
        [_bgView addSubview:self.rightBtn];
        
        _line = [[UIView alloc] initWithFrame:CGRectMake(0, 44-0.7, kScreenWidth, 0.7)];
        _line.backgroundColor = color(240, 240, 240);
        [_bgView addSubview:_line];
        
    }
    return self;
}
-(void)createUI{
    
    
}

@end
